Skip to content

1. Initializing

The initialization phase is crucial in setting the stage for efficient and streamlined development, particularly for projects centered around Python and MLOps. This chapter aims to guide you through establishing a robust development setup, ensuring that every necessary tool and environment is correctly configured from the get-go. By following these foundational steps, you'll create a solid base for your project, enabling smooth progress and reducing the likelihood of delays caused by environment-related issues.

  • 1.0. System: This section ensures your system is adequately prepared, outlining the essential prerequisites for installing and effectively running the necessary development tools.
  • 1.1. Python: Here, we introduce how to set up Python—the core programming language for our projects. We'll focus on version management and creating isolated environments for each project to avoid conflicts and dependency issues.
  • 1.2. uv: We explore uv, an extremely fast Python tool written in Rust. Uv can install Python versions, manage virtual environments, and handle dependencies, making it a versatile tool for MLOps projects.
  • 1.3. uv (project): This part delves into using uv for project packaging. It simplifies the process of defining, installing, and updating project metadata and dependencies with ease.
  • 1.4. git: Focuses on git, the cornerstone version control system integral to GitHub. You'll learn how to initiate and manage repositories effectively, a critical skill for collaborative development.
  • 1.5. GitHub: Discusses how to leverage GitHub for project hosting, version control, and collaboration. It's a pivotal component in modern development workflows, facilitating teamwork and project management.
  • 1.6. VS Code: Highlights the setup of Visual Studio Code (VS Code), showing how to adapt this versatile editor into an integrated development environment (IDE) customized for Python and MLOps projects.
  • 1.7. pyenv (ARCHIVE): Explores pyenv, a Python version management tool that simplifies handling multiple Python versions on a single machine. It ensures each project uses the correct Python version, preventing conflicts and compatibility issues.
  • 1.8. Poetry (ARCHIVE): Introduces Poetry, a Python dependency management tool that simplifies package installation and project configuration. You'll learn how to create, manage, and publish Python packages using Poetry.